package org.jeecg.modules.santu.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 聊天消息表
 * @Author: jeecg-boot
 * @Date:   2021-07-02
 * @Version: V1.0
 */
@Data
@TableName("tb_message")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tb_message对象", description="聊天消息表")
public class TbMessage implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final Integer NOT_RECOVER = 0;
    public static final Integer IS_RECOVER = 1;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**消息id*/
	@Excel(name = "消息id", width = 15)
    @ApiModelProperty(value = "消息id")
    private java.lang.String msgId;
	/**消息类型*/
	@Excel(name = "消息类型", width = 15)
    @ApiModelProperty(value = "消息类型")
    private java.lang.Integer msgType;
	/**群消息/好友消息*/
	@Excel(name = "群消息/好友消息", width = 15)
    @ApiModelProperty(value = "群消息/好友消息")
    private java.lang.Integer msgSource;
	/**原始消息*/
	@Excel(name = "原始消息", width = 15)
    @ApiModelProperty(value = "原始消息")
    private java.lang.String msgSourceXml;
	/**微信id*/
	@Excel(name = "微信id", width = 15)
    @ApiModelProperty(value = "微信id")
    private java.lang.String wxid;
	/**群组id*/
	@Excel(name = "群组id", width = 15)
    @ApiModelProperty(value = "群组id")
    private java.lang.String roomId;
	/**消息内容*/
	@Excel(name = "消息内容", width = 15)
    @ApiModelProperty(value = "消息内容")
    private java.lang.String content;
    /**是否回复*/
    @Excel(name = "是否回复", width = 15)
    @ApiModelProperty(value = "是否回复")
    private java.lang.Integer isRecover;
}
